<%-- 
    Document   : download
    Created on : 1 avr. 2014, 11:21:42
    Author     : phinguyen
--%>

<%@page import="java.util.List"%>
<%@page import="model.Docversion"%>
<%@page import="core.telechargertest"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form action="Servletdownload">
            <select name="docvselected">
                <%
                    telechargertest tcore = new telechargertest();
                    List<Docversion> lstdocv = tcore.getallDocVersion();
                    out.println("lstdocv"+lstdocv.size());
                    for (int i = 0; i < lstdocv.size(); i++) {
                        out.println("<option value=" + lstdocv.get(i).getDocvid() + ">");
                        out.println(lstdocv.get(i).getDocvid());
                        out.println("eeeeeeeeeeeeeeeeeeeeee");
                        out.println(lstdocv.get(i).getDocvtitle());
                        out.println("</option>");

                    }
                %>
            </select>
            <input type="submit" value="Download">
        </form>
    </body>
</html>
